const { httPrequest } = require('./request')
const { requestData } = httPrequest
export const method = {
    post(url, data,bool,validateLogon, options = {}) {
		// console.log(bool)
        return requestData({ url, data, method: 'POST',bool,validateLogon }, options)
    },
    get(url, data,bool,validateLogon, options = {}) {
		// console.log(bool)
        return requestData({ url, data, method: 'GET' ,bool,validateLogon}, options)
    },
	dele(url, data,bool, options = {}) {
		// console.log(bool)
	    return requestData({ url, data, method: 'DELETE' }, options)
	}
}